#include<bits/stdc++.h>
using namespace std;

int in(){
    int k=0,f=1;
    char c=getchar();//getchar_unlocked()更快一些
    while(c<'0'||c>'9'){
        if(c=='-')f=-1;
        c=getchar();
    }
    while(c>='0'&&c<='9'){
        k=k*10+c-'0';
        c=getchar();
    }
    return f*k;
}
void out(int x){
    if(x<0){
        putchar('-');
        x=-x;
    }
    if(x<10)putchar(x+'0');
    else{
        out(x/10);
        putchar(x%10+'0');
    }
}
int main(){
    int n=in();
    int sum=0;
    while(n--)sum+=in();
    out(sum);
    return 0;
}